import fly from '../utils/fly.js'

/**
 * 买家申请退款
 */
export function refunds(params) {
	return fly.request({
		url: '/after-sales/refunds/apply',
		needToken: true,
		params,
		method:'POST'
	})
}
/**
 * 买家申请退货
 */
export function refundsGoods(params) {
	return fly.request({
		url: '/after-sales/return-goods/apply',
		needToken: true,
		params,
		method:'POST'
	})
}